<?php

/**
 * @OA\Schema(
 *       schema="LoginParams",
 *       description="登录参数",
 *       required={"email","password"},
 *       example={"email":"catch@admin.com","password":"catchadmin"},
 *       @OA\Property(
 *            property="email",
 *            type="string",
 *            description="邮箱",
 *       ),
 *       @OA\Property(
 *            property="password",
 *            type="string",
 *            description="密码",
 *            writeOnly=true
 *       ),
 * )
 * @OA\Schema (
 *       schema="LoginResult",
 *       description="登录返回结果",
 *       required={"success","errorCode","errorMessage","showType"},
 *       @OA\Property(
 *            property="errorCode",
 *            type="number",
 *            description="响应码"
 *       ),
 *       @OA\Property(
 *            property="errorMessage",
 *            type="string",
 *            description="响应信息"
 *            ),
 *      @OA\Property(
 *            property="showType",
 *            type="number",
 *            description="ErrorShowType"
 *            ),
 *       @OA\Property(
 *            property="success",
 *            type="boolean",
 *            description="是否成功",
 *       ),
 *       @OA\Property(property="data", type="object",description="数据",required={"token"},
 *             @OA\Property(property="token", type="string",description="Token")
 *       )
 * )
 *
 * @OA\Post(path="/login",
 *   tags={"login"},
 *   summary="后台登录",
 *   operationId="login",
 *   @OA\RequestBody(
 *     @OA\MediaType(
 *       mediaType="application/json",
 *         @OA\Schema(ref="#/components/schemas/LoginParams")
 *       )
 *     ),
 *   @OA\Response(response="200", description="Success",
 *       @OA\JsonContent(ref="#/components/schemas/LoginResult")
 *   )
 * )
 *
 * @OA\Post(path="/logout",
 *      tags={"login"},
 *      summary="退出登录",
 *      operationId="logout",
 *      security={{"Authorization-Bearer":{}}},
 *      @OA\Response(response="200", description="Success",
 *          @OA\JsonContent(ref="#/components/schemas/HandleResponse")
 *   )
 * )
 *
 * @OA\Post(path="/refresh/token",
 *      tags={"login"},
 *      summary="刷新Token",
 *      operationId="refreshToken",
 *      security={{"Authorization-Bearer":{}}},
 *      @OA\Response(response="200", description="Success",
 *          @OA\JsonContent(ref="#/components/schemas/LoginResult")
 *      )
 *   )
 * )
 */







